const Cache = require('./Cache')

class Client extends Cache {
    constructor() {
        super('client')
    }
    async save(client) {
        return await super.upsert(
            {
                host: client.host
            },
            client
        )
    }
    async remove(client) {
        return await super.remove({
            host: client.host
        })
    }
}

module.exports = Client
